package com.qianyu.project.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qianyu.project.entity.SubTenderDetail;
import com.qianyu.project.mapper.SubTenderDetailMapper;
import com.qianyu.project.mapper.SubTenderPlanMapper;
import com.qianyu.project.service.ISubTenderDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qianyu.project.utils.PageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 分包招标明细 服务实现类
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Service
public class SubTenderDetailServiceImpl extends ServiceImpl<SubTenderDetailMapper, SubTenderDetail> implements ISubTenderDetailService {

    @Autowired
    private SubTenderDetailMapper subTenderDetailMapper;

    @Override
    public List<SubTenderDetail> getByPlan(String id) {
        return subTenderDetailMapper.selectByPlan(id);
    }

    @Override
    public IPage<SubTenderDetail> getPageList(Map<String, String> params) {
        return subTenderDetailMapper.selectPageList(PageUtil.createPage(params),params);
    }
}
